package com.example.annotationdemo.controller;

import com.example.annotationdemo.annotation.CheckParam;
import com.example.annotationdemo.dto.HelloDTO;
import org.springframework.web.bind.annotation.*;

/**
 * @author: yeyangtao
 * @date: 2020/4/7 14:02
 */
@RestController()
@RequestMapping("hello")
public class HelloController {
    @PostMapping("say")
    @CheckParam
    public void sayHello(@RequestBody HelloDTO dto) {
        System.out.println(dto);
    }

}
